﻿using System.Collections.Generic;
using Lightray.Hattrick.ChppLib.EntityTypes;

namespace Lightray.Hattrick.ChppLib
{
    public static class ExtentionMethods
    {
        public static EntityCollection<TSource> ToEntityCollection<TSource>(this IEnumerable<TSource> source) where TSource : EntityBase
        {
            return new EntityCollection<TSource>(source);
        }            
    }
}
